From aa4f86fcd41abb0bab28b451f72723e95b82d015 Mon Sep 17 00:00:00 2001 From: Kevin Yap Date: Sat, 22 Jul 2017 12:57:55 -0700 Subject: [PATCH] Convert Options struct into unit struct Unit struct support was added in Docopt 0.8.1 via docopt/docopt.rs#217. Fixes #4174. --- Cargo.toml | 2 +- src/bin/version.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d7dca9fc2..24c6d070c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ atty = "0.2" crates-io = { path = "src/crates-io", version = "0.11" } crossbeam = "0.2" curl = "0.4.6" -docopt = "0.8" +docopt = "0.8.1" env_logger = "0.4" error-chain = "0.10.0" filetime = "0.1" diff --git a/src/bin/version.rs b/src/bin/version.rs index a97c0fc03..f036def03 100644 --- a/src/bin/version.rs +++ b/src/bin/version.rs @@ -4,7 +4,7 @@ use cargo; use cargo::util::{CliResult, Config}; #[derive(Deserialize)] -pub struct Options {} +pub struct Options; pub const USAGE: &'static str = " Show version information -- 2.30.2